home *** CD-ROM | disk | FTP | other *** search
/ Aminet 33 / Aminet 33 - October 1999.iso / Aminet / dev / c / GAPLib.lha / GAPLib / wizards / smakefile < prev   
Encoding:
Makefile  |  1999-05-22  |  1.1 KB  |  53 lines

  1. #
  2. # Wizard makefile, automagically builds magical programs. :-)
  3. # SAS/C version.
  4. #
  5.  
  6. DATA= data/report_c.c data/report_h.c data/bm_c.c data/bs_c.c data/bv_c.c \
  7.     data/sk_c.c data/mk.c
  8.  
  9. OBJS= Conjurer.o
  10.  
  11. CC= sc
  12.  
  13. CFLAGS= opt
  14.  
  15. all: Conjurer
  16.  
  17. clean:
  18.     -delete b2c \#\?\.\(o\|lnk\|info\) $(DATA)
  19.  
  20. data: $(DATA)
  21.  
  22. Conjurer: $(OBJS)
  23.     $(CC) Conjurer.o link to /bin/Conjurer
  24.     -protect /bin/Conjurer +e
  25.  
  26. Conjurer.o: Conjurer.c $(DATA)
  27.     $(CC) $(CFLAGS) Conjurer.c to Conjurer.o
  28.  
  29. data/report_c.c: Templates/report.c b2c
  30.     b2c <Templates/report.c >data/report_c.c report_c
  31.  
  32. data/report_h.c: Templates/report.h b2c
  33.     b2c <Templates/report.h >data/report_h.c report_h
  34.  
  35. data/bm_c.c: Templates/BitMatrix.c b2c
  36.     b2c <Templates/BitMatrix.c >data/bm_c.c Bitmatrix_c
  37.  
  38. data/bs_c.c: Templates/Bitstring.c b2c
  39.     b2c <Templates/Bitstring.c >data/bs_c.c Bitstring_c
  40.  
  41. data/bv_c.c: Templates/BoundedRealVector.c b2c
  42.     b2c <Templates/BoundedRealVector.c >data/bv_c.c BRVector_c
  43.  
  44. data/sk_c.c: Templates/Skeleton.c b2c
  45.     b2c <Templates/Skeleton.c >data/sk_c.c Skeleton_c
  46.  
  47. data/mk.c: Templates/Makefile b2c
  48.     b2c <Templates/Makefile >data/mk.c mk
  49.  
  50. b2c: b2c.c
  51.     $(CC) $(CFLAGS) b2c.c link to b2c
  52.     -protect b2c +e
  53.